import Field from 'winged/utils/wt-model-field';
import Code from '../utils/Code'
export default {
	title:"服务信息",
	name:'serviceMessage',
	query: {
		method: 'DRONE',
		url: 'evaluation/consulting/get_service_compose_info',
		transfer: true,
		pagination: true,
		// 在修改的时候需要进行单条记录查询，用于获取关联麻醉记录
		getOnEdit: true,
		extraParams: ['user_id','service_compose_id',],
		tableName: 'service_compose_info',
	},
	fields:[
		{
			label:"服务类型",
			type:Field.types.text,
			display:true,
			name: 'sc_status',
			tableName: 'sc_status',
			minWidth:'130px',
			builder: function(data) {
				data[this.tableName] = Code.sc_status(data.sc_status)
			}
		},{
			label:"当前状态",
			type:Field.types.text,
			display:true,
			name:'current_order_status',
			tableName: 'current_order_status',
			minWidth:'100px',
			builder:function (data) {
				data[this.tableName] = Code.order_status(data.current_order_status)
			}
		},{
			label:"确认码",
			type:Field.types.text,
			display:true,
			name:'current_order_id',
			tableName: 'current_order_id',
			minWidth:'180px',
		}
	],
}